package com.boarsoft.message.store.jdbc;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class JdbcUtil {
	private static Logger log = LoggerFactory.getLogger(JdbcUtil.class);

	public static void close(AutoCloseable ac) {
		if (ac == null) {
			return;
		}
		try {
			ac.close();
		} catch (Exception e) {
			log.error("Error on close {}", ac.getClass().getName(), e);
			ac = null;
		}
	}
}
